#ifndef _CONCENTRATOR_H_
#define _CONCENTRATOR_H_

class concentrator{
public:
	int id;
	__u8 rx_buf[BUFSIZ];
	__u8 tx_buf[BUFSIZ];
	
	/* MAC */
	void set_mac(char *buf);
	char *get_mac(void);

	/* set and get time */
	void set_time(time_t t);
	time_t get_time(void);

	void init(void);
	void run(void);	

	void readmeter(void);
private:
	char MAC[13];
	time_t ltime;
};

extern concentrator c;
#endif
